import request from "../request";

// 获取ue项目列表
export function getUeProjects(params) {
  return request({
    url: "/api/ueproject/list",
    method: "get",
    params,
  });
}

export function extractAction(data) {
  return request({
    url: `/api/ueproject/extract`,
    method: "post",
    data,
  });
}
export function deleteExtractAction(data) {
  return request({
    url: `/api/ueproject/delete-extracted`,
    method: "post",
    data,
  });
}
export function deleteFileAction(data) {
  return request({
    url: `/api/ueproject/delete`,
    method: "post",
    data,
  });
}

export function getLocalFiles() {
  return request({
    url: `/api/ueproject/getLocalFiles`,
    method: "get",
  });
}

export function deployLocalFiles(data) {
  return request({
    url: `/api/ueproject/deployLocalFiles`,
    method: "post",
    data,
  });
}

export function deleteLocalFile(data) {
  return request({
    url: "/api/ueproject/deleteLocalFile",
    method: "post",
    data,
  });
}

export default {
  getUeProjects,
  extractAction,
  deleteExtractAction,
  deleteFileAction,
  getLocalFiles,
  deployLocalFiles,
  deleteLocalFile
};
